﻿#ifndef ADDRESSBOOK_H
#define ADDRESSBOOK_H

#include <QWidget>

class QListView;
class AddressBookDelegate;
class AddressBookModel;
class QVBoxLayout;
class ScrollBar;

class AddressBook : public QWidget
{
    Q_OBJECT
public:

    AddressBook(QWidget *parent = nullptr);
    ~AddressBook();
    void initUI();

public Q_SLOTS:
    void slotOkBtnClicked();
    void slotViewScrollBarValueChanged(int value);

private:
    QListView*          m_pView         = nullptr;
    ScrollBar*          m_pScrollBar    = nullptr;
    AddressBookModel*   m_pModel        = nullptr;
};

#endif // ADDRESSBOOK_H
